package com.opal.jx.entity.table;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class JxEmpExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public JxEmpExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andEmpCodeIsNull() {
            addCriterion("emp_code is null");
            return (Criteria) this;
        }

        public Criteria andEmpCodeIsNotNull() {
            addCriterion("emp_code is not null");
            return (Criteria) this;
        }

        public Criteria andEmpCodeEqualTo(String value) {
            addCriterion("emp_code =", value, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeNotEqualTo(String value) {
            addCriterion("emp_code <>", value, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeGreaterThan(String value) {
            addCriterion("emp_code >", value, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeGreaterThanOrEqualTo(String value) {
            addCriterion("emp_code >=", value, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeLessThan(String value) {
            addCriterion("emp_code <", value, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeLessThanOrEqualTo(String value) {
            addCriterion("emp_code <=", value, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeLike(String value) {
            addCriterion("emp_code like", value, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeNotLike(String value) {
            addCriterion("emp_code not like", value, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeIn(List<String> values) {
            addCriterion("emp_code in", values, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeNotIn(List<String> values) {
            addCriterion("emp_code not in", values, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeBetween(String value1, String value2) {
            addCriterion("emp_code between", value1, value2, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpCodeNotBetween(String value1, String value2) {
            addCriterion("emp_code not between", value1, value2, "empCode");
            return (Criteria) this;
        }

        public Criteria andEmpNameIsNull() {
            addCriterion("emp_name is null");
            return (Criteria) this;
        }

        public Criteria andEmpNameIsNotNull() {
            addCriterion("emp_name is not null");
            return (Criteria) this;
        }

        public Criteria andEmpNameEqualTo(String value) {
            addCriterion("emp_name =", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameNotEqualTo(String value) {
            addCriterion("emp_name <>", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameGreaterThan(String value) {
            addCriterion("emp_name >", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameGreaterThanOrEqualTo(String value) {
            addCriterion("emp_name >=", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameLessThan(String value) {
            addCriterion("emp_name <", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameLessThanOrEqualTo(String value) {
            addCriterion("emp_name <=", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameLike(String value) {
            addCriterion("emp_name like", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameNotLike(String value) {
            addCriterion("emp_name not like", value, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameIn(List<String> values) {
            addCriterion("emp_name in", values, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameNotIn(List<String> values) {
            addCriterion("emp_name not in", values, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameBetween(String value1, String value2) {
            addCriterion("emp_name between", value1, value2, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpNameNotBetween(String value1, String value2) {
            addCriterion("emp_name not between", value1, value2, "empName");
            return (Criteria) this;
        }

        public Criteria andEmpKezhangIsNull() {
            addCriterion("emp_kezhang is null");
            return (Criteria) this;
        }

        public Criteria andEmpKezhangIsNotNull() {
            addCriterion("emp_kezhang is not null");
            return (Criteria) this;
        }

        public Criteria andEmpKezhangEqualTo(String value) {
            addCriterion("emp_kezhang =", value, "empKezhang");
            return (Criteria) this;
        }

        public Criteria andEmpKezhangNotEqualTo(String value) {
            addCriterion("emp_kezhang <>", value, "empKezhang");
            return (Criteria) this;
        }

        public Criteria andEmpKezhangGreaterThan(String value) {
            addCriterion("emp_kezhang >", value, "empKezhang");
            return (Criteria) this;
        }

        public Criteria andEmpKezhangGreaterThanOrEqualTo(String value) {
            addCriterion("emp_kezhang >=", value, "empKezhang");
            return (Criteria) this;
        }

        public Criteria andEmpKezhangLessThan(String value) {
            addCriterion("emp_kezhang <", value, "empKezhang");
            return (Criteria) this;
        }

        public Criteria andEmpKezhangLessThanOrEqualTo(String value) {
            addCriterion("emp_kezhang <=", value, "empKezhang");
            return (Criteria) this;
        }

        public Criteria andEmpKezhangLike(String value) {
            addCriterion("emp_kezhang like", value, "empKezhang");
            return (Criteria) this;
        }

        public Criteria andEmpKezhangNotLike(String value) {
            addCriterion("emp_kezhang not like", value, "empKezhang");
            return (Criteria) this;
        }

        public Criteria andEmpKezhangIn(List<String> values) {
            addCriterion("emp_kezhang in", values, "empKezhang");
            return (Criteria) this;
        }

        public Criteria andEmpKezhangNotIn(List<String> values) {
            addCriterion("emp_kezhang not in", values, "empKezhang");
            return (Criteria) this;
        }

        public Criteria andEmpKezhangBetween(String value1, String value2) {
            addCriterion("emp_kezhang between", value1, value2, "empKezhang");
            return (Criteria) this;
        }

        public Criteria andEmpKezhangNotBetween(String value1, String value2) {
            addCriterion("emp_kezhang not between", value1, value2, "empKezhang");
            return (Criteria) this;
        }

        public Criteria andEmpZhuguanIsNull() {
            addCriterion("emp_zhuguan is null");
            return (Criteria) this;
        }

        public Criteria andEmpZhuguanIsNotNull() {
            addCriterion("emp_zhuguan is not null");
            return (Criteria) this;
        }

        public Criteria andEmpZhuguanEqualTo(String value) {
            addCriterion("emp_zhuguan =", value, "empZhuguan");
            return (Criteria) this;
        }

        public Criteria andEmpZhuguanNotEqualTo(String value) {
            addCriterion("emp_zhuguan <>", value, "empZhuguan");
            return (Criteria) this;
        }

        public Criteria andEmpZhuguanGreaterThan(String value) {
            addCriterion("emp_zhuguan >", value, "empZhuguan");
            return (Criteria) this;
        }

        public Criteria andEmpZhuguanGreaterThanOrEqualTo(String value) {
            addCriterion("emp_zhuguan >=", value, "empZhuguan");
            return (Criteria) this;
        }

        public Criteria andEmpZhuguanLessThan(String value) {
            addCriterion("emp_zhuguan <", value, "empZhuguan");
            return (Criteria) this;
        }

        public Criteria andEmpZhuguanLessThanOrEqualTo(String value) {
            addCriterion("emp_zhuguan <=", value, "empZhuguan");
            return (Criteria) this;
        }

        public Criteria andEmpZhuguanLike(String value) {
            addCriterion("emp_zhuguan like", value, "empZhuguan");
            return (Criteria) this;
        }

        public Criteria andEmpZhuguanNotLike(String value) {
            addCriterion("emp_zhuguan not like", value, "empZhuguan");
            return (Criteria) this;
        }

        public Criteria andEmpZhuguanIn(List<String> values) {
            addCriterion("emp_zhuguan in", values, "empZhuguan");
            return (Criteria) this;
        }

        public Criteria andEmpZhuguanNotIn(List<String> values) {
            addCriterion("emp_zhuguan not in", values, "empZhuguan");
            return (Criteria) this;
        }

        public Criteria andEmpZhuguanBetween(String value1, String value2) {
            addCriterion("emp_zhuguan between", value1, value2, "empZhuguan");
            return (Criteria) this;
        }

        public Criteria andEmpZhuguanNotBetween(String value1, String value2) {
            addCriterion("emp_zhuguan not between", value1, value2, "empZhuguan");
            return (Criteria) this;
        }

        public Criteria andEmpZuzhangIsNull() {
            addCriterion("emp_zuzhang is null");
            return (Criteria) this;
        }

        public Criteria andEmpZuzhangIsNotNull() {
            addCriterion("emp_zuzhang is not null");
            return (Criteria) this;
        }

        public Criteria andEmpZuzhangEqualTo(String value) {
            addCriterion("emp_zuzhang =", value, "empZuzhang");
            return (Criteria) this;
        }

        public Criteria andEmpZuzhangNotEqualTo(String value) {
            addCriterion("emp_zuzhang <>", value, "empZuzhang");
            return (Criteria) this;
        }

        public Criteria andEmpZuzhangGreaterThan(String value) {
            addCriterion("emp_zuzhang >", value, "empZuzhang");
            return (Criteria) this;
        }

        public Criteria andEmpZuzhangGreaterThanOrEqualTo(String value) {
            addCriterion("emp_zuzhang >=", value, "empZuzhang");
            return (Criteria) this;
        }

        public Criteria andEmpZuzhangLessThan(String value) {
            addCriterion("emp_zuzhang <", value, "empZuzhang");
            return (Criteria) this;
        }

        public Criteria andEmpZuzhangLessThanOrEqualTo(String value) {
            addCriterion("emp_zuzhang <=", value, "empZuzhang");
            return (Criteria) this;
        }

        public Criteria andEmpZuzhangLike(String value) {
            addCriterion("emp_zuzhang like", value, "empZuzhang");
            return (Criteria) this;
        }

        public Criteria andEmpZuzhangNotLike(String value) {
            addCriterion("emp_zuzhang not like", value, "empZuzhang");
            return (Criteria) this;
        }

        public Criteria andEmpZuzhangIn(List<String> values) {
            addCriterion("emp_zuzhang in", values, "empZuzhang");
            return (Criteria) this;
        }

        public Criteria andEmpZuzhangNotIn(List<String> values) {
            addCriterion("emp_zuzhang not in", values, "empZuzhang");
            return (Criteria) this;
        }

        public Criteria andEmpZuzhangBetween(String value1, String value2) {
            addCriterion("emp_zuzhang between", value1, value2, "empZuzhang");
            return (Criteria) this;
        }

        public Criteria andEmpZuzhangNotBetween(String value1, String value2) {
            addCriterion("emp_zuzhang not between", value1, value2, "empZuzhang");
            return (Criteria) this;
        }

        public Criteria andEmpGroupIsNull() {
            addCriterion("emp_group is null");
            return (Criteria) this;
        }

        public Criteria andEmpGroupIsNotNull() {
            addCriterion("emp_group is not null");
            return (Criteria) this;
        }

        public Criteria andEmpGroupEqualTo(String value) {
            addCriterion("emp_group =", value, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupNotEqualTo(String value) {
            addCriterion("emp_group <>", value, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupGreaterThan(String value) {
            addCriterion("emp_group >", value, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupGreaterThanOrEqualTo(String value) {
            addCriterion("emp_group >=", value, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupLessThan(String value) {
            addCriterion("emp_group <", value, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupLessThanOrEqualTo(String value) {
            addCriterion("emp_group <=", value, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupLike(String value) {
            addCriterion("emp_group like", value, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupNotLike(String value) {
            addCriterion("emp_group not like", value, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupIn(List<String> values) {
            addCriterion("emp_group in", values, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupNotIn(List<String> values) {
            addCriterion("emp_group not in", values, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupBetween(String value1, String value2) {
            addCriterion("emp_group between", value1, value2, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGroupNotBetween(String value1, String value2) {
            addCriterion("emp_group not between", value1, value2, "empGroup");
            return (Criteria) this;
        }

        public Criteria andEmpGenderIsNull() {
            addCriterion("emp_gender is null");
            return (Criteria) this;
        }

        public Criteria andEmpGenderIsNotNull() {
            addCriterion("emp_gender is not null");
            return (Criteria) this;
        }

        public Criteria andEmpGenderEqualTo(String value) {
            addCriterion("emp_gender =", value, "empGender");
            return (Criteria) this;
        }

        public Criteria andEmpGenderNotEqualTo(String value) {
            addCriterion("emp_gender <>", value, "empGender");
            return (Criteria) this;
        }

        public Criteria andEmpGenderGreaterThan(String value) {
            addCriterion("emp_gender >", value, "empGender");
            return (Criteria) this;
        }

        public Criteria andEmpGenderGreaterThanOrEqualTo(String value) {
            addCriterion("emp_gender >=", value, "empGender");
            return (Criteria) this;
        }

        public Criteria andEmpGenderLessThan(String value) {
            addCriterion("emp_gender <", value, "empGender");
            return (Criteria) this;
        }

        public Criteria andEmpGenderLessThanOrEqualTo(String value) {
            addCriterion("emp_gender <=", value, "empGender");
            return (Criteria) this;
        }

        public Criteria andEmpGenderLike(String value) {
            addCriterion("emp_gender like", value, "empGender");
            return (Criteria) this;
        }

        public Criteria andEmpGenderNotLike(String value) {
            addCriterion("emp_gender not like", value, "empGender");
            return (Criteria) this;
        }

        public Criteria andEmpGenderIn(List<String> values) {
            addCriterion("emp_gender in", values, "empGender");
            return (Criteria) this;
        }

        public Criteria andEmpGenderNotIn(List<String> values) {
            addCriterion("emp_gender not in", values, "empGender");
            return (Criteria) this;
        }

        public Criteria andEmpGenderBetween(String value1, String value2) {
            addCriterion("emp_gender between", value1, value2, "empGender");
            return (Criteria) this;
        }

        public Criteria andEmpGenderNotBetween(String value1, String value2) {
            addCriterion("emp_gender not between", value1, value2, "empGender");
            return (Criteria) this;
        }

        public Criteria andEmpAgeIsNull() {
            addCriterion("emp_age is null");
            return (Criteria) this;
        }

        public Criteria andEmpAgeIsNotNull() {
            addCriterion("emp_age is not null");
            return (Criteria) this;
        }

        public Criteria andEmpAgeEqualTo(Integer value) {
            addCriterion("emp_age =", value, "empAge");
            return (Criteria) this;
        }

        public Criteria andEmpAgeNotEqualTo(Integer value) {
            addCriterion("emp_age <>", value, "empAge");
            return (Criteria) this;
        }

        public Criteria andEmpAgeGreaterThan(Integer value) {
            addCriterion("emp_age >", value, "empAge");
            return (Criteria) this;
        }

        public Criteria andEmpAgeGreaterThanOrEqualTo(Integer value) {
            addCriterion("emp_age >=", value, "empAge");
            return (Criteria) this;
        }

        public Criteria andEmpAgeLessThan(Integer value) {
            addCriterion("emp_age <", value, "empAge");
            return (Criteria) this;
        }

        public Criteria andEmpAgeLessThanOrEqualTo(Integer value) {
            addCriterion("emp_age <=", value, "empAge");
            return (Criteria) this;
        }

        public Criteria andEmpAgeIn(List<Integer> values) {
            addCriterion("emp_age in", values, "empAge");
            return (Criteria) this;
        }

        public Criteria andEmpAgeNotIn(List<Integer> values) {
            addCriterion("emp_age not in", values, "empAge");
            return (Criteria) this;
        }

        public Criteria andEmpAgeBetween(Integer value1, Integer value2) {
            addCriterion("emp_age between", value1, value2, "empAge");
            return (Criteria) this;
        }

        public Criteria andEmpAgeNotBetween(Integer value1, Integer value2) {
            addCriterion("emp_age not between", value1, value2, "empAge");
            return (Criteria) this;
        }

        public Criteria andEmpEntryDateIsNull() {
            addCriterion("emp_entry_date is null");
            return (Criteria) this;
        }

        public Criteria andEmpEntryDateIsNotNull() {
            addCriterion("emp_entry_date is not null");
            return (Criteria) this;
        }

        public Criteria andEmpEntryDateEqualTo(Date value) {
            addCriterionForJDBCDate("emp_entry_date =", value, "empEntryDate");
            return (Criteria) this;
        }

        public Criteria andEmpEntryDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("emp_entry_date <>", value, "empEntryDate");
            return (Criteria) this;
        }

        public Criteria andEmpEntryDateGreaterThan(Date value) {
            addCriterionForJDBCDate("emp_entry_date >", value, "empEntryDate");
            return (Criteria) this;
        }

        public Criteria andEmpEntryDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("emp_entry_date >=", value, "empEntryDate");
            return (Criteria) this;
        }

        public Criteria andEmpEntryDateLessThan(Date value) {
            addCriterionForJDBCDate("emp_entry_date <", value, "empEntryDate");
            return (Criteria) this;
        }

        public Criteria andEmpEntryDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("emp_entry_date <=", value, "empEntryDate");
            return (Criteria) this;
        }

        public Criteria andEmpEntryDateIn(List<Date> values) {
            addCriterionForJDBCDate("emp_entry_date in", values, "empEntryDate");
            return (Criteria) this;
        }

        public Criteria andEmpEntryDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("emp_entry_date not in", values, "empEntryDate");
            return (Criteria) this;
        }

        public Criteria andEmpEntryDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("emp_entry_date between", value1, value2, "empEntryDate");
            return (Criteria) this;
        }

        public Criteria andEmpEntryDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("emp_entry_date not between", value1, value2, "empEntryDate");
            return (Criteria) this;
        }

        public Criteria andEmpEntryIsNull() {
            addCriterion("emp_entry is null");
            return (Criteria) this;
        }

        public Criteria andEmpEntryIsNotNull() {
            addCriterion("emp_entry is not null");
            return (Criteria) this;
        }

        public Criteria andEmpEntryEqualTo(Integer value) {
            addCriterion("emp_entry =", value, "empEntry");
            return (Criteria) this;
        }

        public Criteria andEmpEntryNotEqualTo(Integer value) {
            addCriterion("emp_entry <>", value, "empEntry");
            return (Criteria) this;
        }

        public Criteria andEmpEntryGreaterThan(Integer value) {
            addCriterion("emp_entry >", value, "empEntry");
            return (Criteria) this;
        }

        public Criteria andEmpEntryGreaterThanOrEqualTo(Integer value) {
            addCriterion("emp_entry >=", value, "empEntry");
            return (Criteria) this;
        }

        public Criteria andEmpEntryLessThan(Integer value) {
            addCriterion("emp_entry <", value, "empEntry");
            return (Criteria) this;
        }

        public Criteria andEmpEntryLessThanOrEqualTo(Integer value) {
            addCriterion("emp_entry <=", value, "empEntry");
            return (Criteria) this;
        }

        public Criteria andEmpEntryIn(List<Integer> values) {
            addCriterion("emp_entry in", values, "empEntry");
            return (Criteria) this;
        }

        public Criteria andEmpEntryNotIn(List<Integer> values) {
            addCriterion("emp_entry not in", values, "empEntry");
            return (Criteria) this;
        }

        public Criteria andEmpEntryBetween(Integer value1, Integer value2) {
            addCriterion("emp_entry between", value1, value2, "empEntry");
            return (Criteria) this;
        }

        public Criteria andEmpEntryNotBetween(Integer value1, Integer value2) {
            addCriterion("emp_entry not between", value1, value2, "empEntry");
            return (Criteria) this;
        }

        public Criteria andPkOrgIsNull() {
            addCriterion("pk_org is null");
            return (Criteria) this;
        }

        public Criteria andPkOrgIsNotNull() {
            addCriterion("pk_org is not null");
            return (Criteria) this;
        }

        public Criteria andPkOrgEqualTo(String value) {
            addCriterion("pk_org =", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgNotEqualTo(String value) {
            addCriterion("pk_org <>", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgGreaterThan(String value) {
            addCriterion("pk_org >", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgGreaterThanOrEqualTo(String value) {
            addCriterion("pk_org >=", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgLessThan(String value) {
            addCriterion("pk_org <", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgLessThanOrEqualTo(String value) {
            addCriterion("pk_org <=", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgLike(String value) {
            addCriterion("pk_org like", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgNotLike(String value) {
            addCriterion("pk_org not like", value, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgIn(List<String> values) {
            addCriterion("pk_org in", values, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgNotIn(List<String> values) {
            addCriterion("pk_org not in", values, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgBetween(String value1, String value2) {
            addCriterion("pk_org between", value1, value2, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkOrgNotBetween(String value1, String value2) {
            addCriterion("pk_org not between", value1, value2, "pkOrg");
            return (Criteria) this;
        }

        public Criteria andPkDeptIsNull() {
            addCriterion("pk_dept is null");
            return (Criteria) this;
        }

        public Criteria andPkDeptIsNotNull() {
            addCriterion("pk_dept is not null");
            return (Criteria) this;
        }

        public Criteria andPkDeptEqualTo(String value) {
            addCriterion("pk_dept =", value, "pkDept");
            return (Criteria) this;
        }

        public Criteria andPkDeptNotEqualTo(String value) {
            addCriterion("pk_dept <>", value, "pkDept");
            return (Criteria) this;
        }

        public Criteria andPkDeptGreaterThan(String value) {
            addCriterion("pk_dept >", value, "pkDept");
            return (Criteria) this;
        }

        public Criteria andPkDeptGreaterThanOrEqualTo(String value) {
            addCriterion("pk_dept >=", value, "pkDept");
            return (Criteria) this;
        }

        public Criteria andPkDeptLessThan(String value) {
            addCriterion("pk_dept <", value, "pkDept");
            return (Criteria) this;
        }

        public Criteria andPkDeptLessThanOrEqualTo(String value) {
            addCriterion("pk_dept <=", value, "pkDept");
            return (Criteria) this;
        }

        public Criteria andPkDeptLike(String value) {
            addCriterion("pk_dept like", value, "pkDept");
            return (Criteria) this;
        }

        public Criteria andPkDeptNotLike(String value) {
            addCriterion("pk_dept not like", value, "pkDept");
            return (Criteria) this;
        }

        public Criteria andPkDeptIn(List<String> values) {
            addCriterion("pk_dept in", values, "pkDept");
            return (Criteria) this;
        }

        public Criteria andPkDeptNotIn(List<String> values) {
            addCriterion("pk_dept not in", values, "pkDept");
            return (Criteria) this;
        }

        public Criteria andPkDeptBetween(String value1, String value2) {
            addCriterion("pk_dept between", value1, value2, "pkDept");
            return (Criteria) this;
        }

        public Criteria andPkDeptNotBetween(String value1, String value2) {
            addCriterion("pk_dept not between", value1, value2, "pkDept");
            return (Criteria) this;
        }

        public Criteria andPkDeptNameIsNull() {
            addCriterion("pk_dept_name is null");
            return (Criteria) this;
        }

        public Criteria andPkDeptNameIsNotNull() {
            addCriterion("pk_dept_name is not null");
            return (Criteria) this;
        }

        public Criteria andPkDeptNameEqualTo(String value) {
            addCriterion("pk_dept_name =", value, "pkDeptName");
            return (Criteria) this;
        }

        public Criteria andPkDeptNameNotEqualTo(String value) {
            addCriterion("pk_dept_name <>", value, "pkDeptName");
            return (Criteria) this;
        }

        public Criteria andPkDeptNameGreaterThan(String value) {
            addCriterion("pk_dept_name >", value, "pkDeptName");
            return (Criteria) this;
        }

        public Criteria andPkDeptNameGreaterThanOrEqualTo(String value) {
            addCriterion("pk_dept_name >=", value, "pkDeptName");
            return (Criteria) this;
        }

        public Criteria andPkDeptNameLessThan(String value) {
            addCriterion("pk_dept_name <", value, "pkDeptName");
            return (Criteria) this;
        }

        public Criteria andPkDeptNameLessThanOrEqualTo(String value) {
            addCriterion("pk_dept_name <=", value, "pkDeptName");
            return (Criteria) this;
        }

        public Criteria andPkDeptNameLike(String value) {
            addCriterion("pk_dept_name like", value, "pkDeptName");
            return (Criteria) this;
        }

        public Criteria andPkDeptNameNotLike(String value) {
            addCriterion("pk_dept_name not like", value, "pkDeptName");
            return (Criteria) this;
        }

        public Criteria andPkDeptNameIn(List<String> values) {
            addCriterion("pk_dept_name in", values, "pkDeptName");
            return (Criteria) this;
        }

        public Criteria andPkDeptNameNotIn(List<String> values) {
            addCriterion("pk_dept_name not in", values, "pkDeptName");
            return (Criteria) this;
        }

        public Criteria andPkDeptNameBetween(String value1, String value2) {
            addCriterion("pk_dept_name between", value1, value2, "pkDeptName");
            return (Criteria) this;
        }

        public Criteria andPkDeptNameNotBetween(String value1, String value2) {
            addCriterion("pk_dept_name not between", value1, value2, "pkDeptName");
            return (Criteria) this;
        }

        public Criteria andPostIdIsNull() {
            addCriterion("post_id is null");
            return (Criteria) this;
        }

        public Criteria andPostIdIsNotNull() {
            addCriterion("post_id is not null");
            return (Criteria) this;
        }

        public Criteria andPostIdEqualTo(Long value) {
            addCriterion("post_id =", value, "postId");
            return (Criteria) this;
        }

        public Criteria andPostIdNotEqualTo(Long value) {
            addCriterion("post_id <>", value, "postId");
            return (Criteria) this;
        }

        public Criteria andPostIdGreaterThan(Long value) {
            addCriterion("post_id >", value, "postId");
            return (Criteria) this;
        }

        public Criteria andPostIdGreaterThanOrEqualTo(Long value) {
            addCriterion("post_id >=", value, "postId");
            return (Criteria) this;
        }

        public Criteria andPostIdLessThan(Long value) {
            addCriterion("post_id <", value, "postId");
            return (Criteria) this;
        }

        public Criteria andPostIdLessThanOrEqualTo(Long value) {
            addCriterion("post_id <=", value, "postId");
            return (Criteria) this;
        }

        public Criteria andPostIdIn(List<Long> values) {
            addCriterion("post_id in", values, "postId");
            return (Criteria) this;
        }

        public Criteria andPostIdNotIn(List<Long> values) {
            addCriterion("post_id not in", values, "postId");
            return (Criteria) this;
        }

        public Criteria andPostIdBetween(Long value1, Long value2) {
            addCriterion("post_id between", value1, value2, "postId");
            return (Criteria) this;
        }

        public Criteria andPostIdNotBetween(Long value1, Long value2) {
            addCriterion("post_id not between", value1, value2, "postId");
            return (Criteria) this;
        }

        public Criteria andPostNameIsNull() {
            addCriterion("post_name is null");
            return (Criteria) this;
        }

        public Criteria andPostNameIsNotNull() {
            addCriterion("post_name is not null");
            return (Criteria) this;
        }

        public Criteria andPostNameEqualTo(String value) {
            addCriterion("post_name =", value, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameNotEqualTo(String value) {
            addCriterion("post_name <>", value, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameGreaterThan(String value) {
            addCriterion("post_name >", value, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameGreaterThanOrEqualTo(String value) {
            addCriterion("post_name >=", value, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameLessThan(String value) {
            addCriterion("post_name <", value, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameLessThanOrEqualTo(String value) {
            addCriterion("post_name <=", value, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameLike(String value) {
            addCriterion("post_name like", value, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameNotLike(String value) {
            addCriterion("post_name not like", value, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameIn(List<String> values) {
            addCriterion("post_name in", values, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameNotIn(List<String> values) {
            addCriterion("post_name not in", values, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameBetween(String value1, String value2) {
            addCriterion("post_name between", value1, value2, "postName");
            return (Criteria) this;
        }

        public Criteria andPostNameNotBetween(String value1, String value2) {
            addCriterion("post_name not between", value1, value2, "postName");
            return (Criteria) this;
        }

        public Criteria andCreatedIsNull() {
            addCriterion("created is null");
            return (Criteria) this;
        }

        public Criteria andCreatedIsNotNull() {
            addCriterion("created is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedEqualTo(Date value) {
            addCriterion("created =", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotEqualTo(Date value) {
            addCriterion("created <>", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedGreaterThan(Date value) {
            addCriterion("created >", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedGreaterThanOrEqualTo(Date value) {
            addCriterion("created >=", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedLessThan(Date value) {
            addCriterion("created <", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedLessThanOrEqualTo(Date value) {
            addCriterion("created <=", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedIn(List<Date> values) {
            addCriterion("created in", values, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotIn(List<Date> values) {
            addCriterion("created not in", values, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedBetween(Date value1, Date value2) {
            addCriterion("created between", value1, value2, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotBetween(Date value1, Date value2) {
            addCriterion("created not between", value1, value2, "created");
            return (Criteria) this;
        }

        public Criteria andUpdatedIsNull() {
            addCriterion("updated is null");
            return (Criteria) this;
        }

        public Criteria andUpdatedIsNotNull() {
            addCriterion("updated is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatedEqualTo(Date value) {
            addCriterion("updated =", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedNotEqualTo(Date value) {
            addCriterion("updated <>", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedGreaterThan(Date value) {
            addCriterion("updated >", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedGreaterThanOrEqualTo(Date value) {
            addCriterion("updated >=", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedLessThan(Date value) {
            addCriterion("updated <", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedLessThanOrEqualTo(Date value) {
            addCriterion("updated <=", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedIn(List<Date> values) {
            addCriterion("updated in", values, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedNotIn(List<Date> values) {
            addCriterion("updated not in", values, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedBetween(Date value1, Date value2) {
            addCriterion("updated between", value1, value2, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedNotBetween(Date value1, Date value2) {
            addCriterion("updated not between", value1, value2, "updated");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}